package valiutils

import (
	"github.com/go-playground/validator/v10"
	"unicode"
)

// 名字中不包含特殊字符验证

func ValiStuName(fl validator.FieldLevel) bool {
	stu_name := fl.Field().String()
	for _, char := range stu_name {
		if !unicode.IsLetter(char) && !unicode.IsDigit(char) {
			return false
		}
	}
	return true
}
